package com.bdk.middle.order.api.client;

import com.bdk.middle.common.result.ResultDO;
import com.bdk.middle.order.api.query.OrderItemQueryDO;
import org.springframework.web.bind.annotation.*;

public interface OrderItemApi {

    /**
     * 获取订单详情项
     * @param orderId 订单项ID
     * @return ResultDO
     */
    @RequestMapping(value="/order_item_cliet_api/getByOrderId.html", method = RequestMethod.POST)
    public @ResponseBody
    ResultDO getByOrderId(@RequestParam("orderId")String orderId);

    /**
     * 删除订单项
     * @param id 订单项ID
     * @return ResultDO
     */
    @RequestMapping(value="/order_item_cliet_api/remove.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO remove(@RequestParam("id")String id);

    /**
     * 删除订单项
     * @param orderId 订单项ID
     * @return ResultDO
     */
    @RequestMapping(value="/order_item_cliet_api/removeByOrderId.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO removeByOrderId(@RequestParam("orderId")String orderId);

    /**
     * 查找订单列表分页
     * @param domain 查询DO
     * @return ResultDO
     */
    @RequestMapping(value="/order_item_cliet_api/find.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO find(@RequestBody OrderItemQueryDO domain);
}
